Skip to content

Remove relay SAS keys - #164

Merged
saliceti merged 2 commits into
mainfrom
DTOSS_Remove_per-HC_SAS_listen_keys
Jul 30, 2026
Merged

Remove relay SAS keys#164
saliceti merged 2 commits into
mainfrom
DTOSS_Remove_per-HC_SAS_listen_keys

Conversation

@floormind

@floormind floormind commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description

Remove Azure Relay SAS keys

All deployed environments now authenticate to Azure Relay using Managed Identity, so retaining SAS keys increases attack surface.

Jira link

https://nhsd-jira.digital.nhs.uk/browse/DTOSS-13123

Review notes

Review checklist

  • Check database queries are correctly scoped to current_provider

Comment thread scripts/bash/deploy_arc_ring.sh Outdated
Comment thread scripts/bash/deploy_arc_ring.sh Outdated

@steventux steventux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're missing a description of the intent of this PR, also JIRA links help us track the changes.
I've suggested a couple of things for readability and formatting.

@floormind floormind changed the title adding changes for checking for SAS keys, this should only apply in r… Checking SAS keys in review environment Jul 22, 2026
@floormind
floormind force-pushed the DTOSS_Remove_per-HC_SAS_listen_keys branch from 2a153d9 to b0278d7 Compare July 23, 2026 15:10
@floormind
floormind force-pushed the DTOSS_Remove_per-HC_SAS_listen_keys branch from 5ce20af to 55ebe46 Compare July 27, 2026 12:08
@floormind
floormind force-pushed the DTOSS_Remove_per-HC_SAS_listen_keys branch from 91c0c0a to b025d0c Compare July 27, 2026 12:34

@steventux steventux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could do with fixing up or deleting the wip commit. The SAS key descriptions refer to Arc machines which might be confusing.
Otheriwise looks good.

Comment thread infrastructure/modules/arc-infra/variables.tf Outdated
Comment thread infrastructure/terraform/variables.tf Outdated
@saliceti saliceti changed the title Checking SAS keys in review environment Remove relay SAS keys Jul 29, 2026
@saliceti
saliceti force-pushed the DTOSS_Remove_per-HC_SAS_listen_keys branch from 8bc20e0 to 1ea2923 Compare July 29, 2026 14:40
All deployed environments must use managed identities for security
reasons. For authenticating both the web application and the gateways.
Comment thread infrastructure/modules/arc-infra/relay.tf
steventux
steventux previously approved these changes Jul 29, 2026

@steventux steventux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: Looks good to me. One question about removing the listen hybrid connection.
It might be handy to have this in place on the review env only.

@saliceti

Copy link
Copy Markdown
Contributor

As discussed with @steventux, these SAS keys were only created for the ARC registered gateways. These machines already use managed identities.
SAS keys are only required for local development, which relied on docker-compose. They are created manually and only the root key is typically used.

@steventux steventux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔐

@saliceti
saliceti merged commit 825dcd0 into main Jul 30, 2026
18 checks passed
@saliceti
saliceti deleted the DTOSS_Remove_per-HC_SAS_listen_keys branch July 30, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants